# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=scapy-ssl_tls
pkgver=2.0.0
pkgrel=3
pkgdesc='An SSL/TLS layer for scapy the interactive packet manipulation tool.'
arch=('any')
url='https://pypi.org/project/scapy-ssl_tls/#files'
license=('GPL2')
depends=('python2' 'python2-scapy' 'python2-crypto')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/scapy-ssl_tls-$pkgver.tar.gz")
sha512sums=('18bd4e8d1edf9b90bd3a307cf72d4b93098f57d40f2c52e714602fb8bb62c3036f46a08c9c2eaa2b596c72da1f6a75b47d7709b8880e0805007f9413ca94f96b')

package() {
  cd "$pkgname-$pkgver"

  install -dm 755 "$pkgdir/usr/lib/python2.7/site-packages"

  cp -a scapy_ssl_tls scapy_ssl_tls.egg-info \
    "$pkgdir/usr/lib/python2.7/site-packages"

  #python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}

